package com.by.mapper;

import com.by.common.dao.MyBaseMapper;
import com.by.entity.AttrValue;
import com.by.entity.SpuAttrValue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SpuAttrValueMapper extends MyBaseMapper<SpuAttrValue> {
    int save(@Param("spu_id") int spu_id,@Param("attr_id") int attr_id);
    //根据商品id查询所有属性值
    List<SpuAttrValue> getAttrValueList(@Param("id") int shopId);
}
